message("")
message("=====I am in Cmake : test_cmake_group - START=====")
cmake_minimum_required(VERSION 3.0.0)
project(test_cmake_group VERSION 0.1.0)

include(CTest)
enable_testing()

message("CMAKE_BINARY_DIR       = " ${CMAKE_BINARY_DIR})
message("LIBRARY_OUTPUT_PATH    = " ${LIBRARY_OUTPUT_PATH})
message("EXECUTABLE_OUTPUT_PATH = " ${EXECUTABLE_OUTPUT_PATH})

include_directories (./ 
    ../cmake_group )

#//src目录的文件都加入
aux_source_directory (./ SRC_LIST)

#//生成exe
add_executable(test_cmake_group ${SRC_LIST})

# link lib
if(MSVC)
    set (KEVIN_LINK_PATH  cmake_group)
ELSE ()
    set (KEVIN_LINK_PATH  libcmake_group)
ENDIF ()


target_link_libraries(test_cmake_group  ${KEVIN_LINK_PATH})

set(CPACK_PROJECT_NAME ${PROJECT_NAME})
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
include(CPack)

message("=====I am in Cmake : test_cmake_group - END=====")
message("")
